<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <link href="/public/css/bootstrap.min.css" rel="stylesheet">
</head>


<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="sub-header">用户管理系统</h2>
        <a class="activeA" href="/list">用户列表</a>
        <a style="margin-left: 5px" href="/add">新增用户</a>
        <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>昵称</th>
                  <th>电话</th>
                  <th>楼栋</th>
                  <th>门牌</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {{ each users }}
              <tr>
                <td>{{ $value.id }}</td>
                <td>{{ $value.name }}</td>
                <td>{{ $value.nickName }}</td>
                <td>{{ $value.phone }}</td>
                <td>{{ $value.loudong }}</td>
                <td>{{ $value.menpai }}</td>
                <td>
                  <a href="/edit?id={{ $value.id }}">编辑</a>
                  <a href="/delete?id={{ $value.id }}">删除</a>
                </td>
              </tr>
              {{ /each }}
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</body>

</html>
